import request from '@/utils/request'

// 查询站场主态列表
export function listYard(query) {
  return request({
    url: '/system/yard/list',
    method: 'get',
    params: query
  })
}

// 查询站场主态详细
export function getYard(yardId) {
  return request({
    url: '/system/yard/' + yardId,
    method: 'get'
  })
}

// 新增站场主态
export function addYard(data) {
  return request({
    url: '/system/yard',
    method: 'post',
    data: data
  })
}

// 修改站场主态
export function updateYard(data) {
  return request({
    url: '/system/yard',
    method: 'put',
    data: data
  })
}

// 删除站场主态
export function delYard(yardId) {
  return request({
    url: '/system/yard/' + yardId,
    method: 'delete'
  })
}
